#include <BaseFormat.h>

const Format& BASE_FORMAT = BaseFormat::getInstance();

const BaseFormat& BaseFormat::getInstance()
{
    static const baseFormat BaseFormat();
    return baseFormat;
}
void BaseFormat::toString(std::ostream & os,const int value, const Unit &unit)
{
    Unit* p_baseUnit = NULL;   
    if(unit.getBaseUnit(&p_baseUnit))
    {
        p_baseUnit->toString(os,unit.toBaseVlaue(value));
    }
}

